@layout("/common/_form.html",{js:["/assets/modular/productAttr/productAttr_edit.js"]}){

<form class="layui-form" id="productAttrForm" lay-filter="productAttrForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">产品属性信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">属性名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="name" name="name" placeholder="属性名称" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">${lang.get("FIELD_PRODUCT_TYPE_1","产品类型")}<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <select id="productType" name="productTypeId" lay-filter="productTypeId">
                                <option value="">请选择产品类型</option>
                            </select>
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">单位信息<span style="color: red;">*</span></label>
                        <div class="layui-btn-group">
                            <button id="addAttrBtn" type="button" class="layui-btn layui-btn-primary layui-btn-sm">
                                <i class="layui-icon">&#xe654;</i>
                            </button>

                            <button id="delAttrBtn" type="button" class="layui-btn layui-btn-primary layui-btn-sm" lay-event="delete">
                                <i class="layui-icon">&#xe640;</i>
                            </button>
                        </div>
                        <div class="layui-col-md12">
                            <table class="layui-table" id="attrTable" lay-filter="attrTable">
                            </table>
                        </div>
<!--                        <div class="layui-input-block">-->
<!--                            <input id="attrContext" name="attrContext" placeholder="请输入单位信息" type="text" class="layui-input" lay-verify="required" required/>-->
<!--                        </div>-->
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>

<script type="text/html" id="toolbar">
    <div class="layui-input-inline">

        <!--需要监听表单行选择的，添加lay-event属性-->
        <button class="layui-btn" type="button" lay-event="add">增加</button>
        <button class="layui-btn" type="button" lay-event="del">删除</button>
    </div>
</script>

@}
